import { layout } from "@/app";

export default [
  { path: '/', redirect: '/A/users' },
  {
    name: '用户管理',
    path: '/A',
    icon: 'UserOutlined',
    routes: [{ name: '用户列表', path: '/A/users', component: './User' }],
  },
  {
    name: '权限管理',
    path: '/B',
    icon: 'GroupOutlined',
    routes: [
      { name: '角色列表', path: '/B/roles', component: './Roles' },
      { name: '权限列表', path: '/B/rights', component: './Rights' },
    ],
  },

  {
    name: '商品管理',
    path: '/C',
    icon: 'SnippetsOutlined',
    routes: [
      { name: '商品列表', path: '/C/goods', component: './Goods' },
      { name: '', path: '/C/addGoods', component: './Goods/components/Add'},
      { name: '分类参数', path: '/C/params', component: './Params'},
      { name: '商品分类', path: '/C/categories', component: './Category'},
    ],
  },

  {
    name: '数据统计',
    path: '/D',
    icon: 'SnippetsOutlined',
    routes: [
      { name: '数据报表', path: '/D/reports', component: './Report' },
    ],
  },

  { name: 'login', path: '/login', component: './Login', layout: false },
];
